package boot.spring.service;

import boot.spring.po.Mail;

import java.util.Map;

public interface Publisher {
	public void sendfanoutMail(Mail mail);//使用fanout交换机发布消息给所有队列
	public void senddirectMail(Mail mail,String routingkey);//使用direct交换机发送消息
	public void sendtopicMail(Mail mail,String routingkey);//使用topic交换机发送消息
	public void sendtDeadLetter(String orderExchange, String orderRoutingKey, Map<String, Object> map  , String times); // 延时队列
	public void send(int id, String msg) ;
}
